import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'//全局使用路由模块
//导入创建的路由配置表
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import after from './assets/after.css'
Vue.use(after)
import store from './store'
import Vueaxios from 'vue-axios'

//配置请求的根路径
import axios from 'axios'
axios.defaults.baseURL = 'http://www.tangxiaoyang.vip:8888/api/v2/'
//axios.defaults.baseURL =' http://116.63.80.218:8080/swagger-ui.html#/'
Vue.prototype.$http = axios

import echarts from 'echarts'
Vue.prototype.$echarts = echarts
import VCharts from 'v-charts'
Vue.use(VCharts)
Vue.use(echarts)
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(Vueaxios, axios)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
